import { defineStore } from 'pinia'
export const useCounterStore = defineStore('counter', {
  state: () => ({
    adoptshen: 0, //领养审核
    dailing: 0, //待领养
    adoptcount: 0, //领养管理总数
    daihelp: 0, //待救助
    gohelp: 0, //救助中
    helpcount: 0, //救助管理总数
    user: ''
  }),
  getters: {
    getAdoptCount(state) {
      return state.adoptshen + state.dailing
    },
    getHelpCount(state) {
      return state.daihelp + state.gohelp
    }
  },
  actions: {}
})
